<template>
  <div class="food-wrap">
    <food-item v-for="foodInfo in foodList" :food-info="foodInfo" :key="foodInfo.id"></food-item>
  </div>
</template>

<script>
  import FoodItem from './Sub.vue';

  export default {
    name: 'FoodList',
    props: {
      foodList: Array
    },
    components: {
      'food-item': FoodItem
    }
  }
</script>

<style lang="scss" scoped="scoped">
  @import '~styles/mixins.scss';
  @import '~styles/variables.scss';

  .food-wrap {
    background-color: #FFFFFF;
  }
</style>
